package com.sx.medicinecard.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "sx_ali_account_info")
public class SxAliAccountInfo extends Model<SxAliAccountInfo> {
    /**
     * 阿里账户id
     */
    @TableId(value = "ali_account_id")
    private String aliAccountId;

    /**
     * 阿里账户id
     */
    @TableField(value = "ali_account_name")
    private String aliAccountName;
    /**
     * 阿里私钥
     */
    @TableField(value = "private_key")
    private String privateKey;
    /**
     * 阿里支付公钥
     */
    @TableField(value = "alipay_public_key")
    private String alipayPublicKey;
    /**
     * 阿里appid
     */
    @TableField(value = "app_id")
    private String appId;
    /**
     * 阿里token
     */
    @TableField(value = "app_auth_token")
    private String appAuthToken;
    /**
     * 产品码
     */
    @TableField(value = "product_code")
    private String productCode;
    /**
     * 首次扣款金额
     */
    @TableField(value = "first_deduct_amount")
    private BigDecimal firstDeductAmount;
    /**
     * 最大扣款金额
     */
    @TableField(value = "max_deduct_amount")
    private BigDecimal maxDeductAmount;
    /**
     * 促销金额
     */
    @TableField(value = "promotion_amount")
    private BigDecimal promotionAmount;
    /**
     * 扣款周期
     */
    @TableField(value = "deduct_cycle")
    private Integer deductCycle;
    /**
     * 扣款周期类型（DAY、MONTH）
     */
    @TableField(value = "deduct_cycle_type")
    private String deductCycleType;

    /**
     * 刷单金额
     */
    @TableField(value = "brush_amount")
    private BigDecimal brushAmount;
    /**
     * 刷单扣款周期
     */
    @TableField(value = "brush_cycle")
    private Integer brushCycle;

    /**
     * 刷单订单标题
     */
    @TableField(value = "brush_subject")
    private String brushSubject;

    /**
     * 刷单描述信息
     */
    @TableField(value = "brush_body")
    private String brushBody;
    /**
     * 订单标题
     */
    @TableField(value = "subject")
    private String subject;

    /**
     * 描述信息
     */
    @TableField(value = "body")
    private String body;
    /**
     * 账户类型（1-仅支持签约，2-支持签约并支付）
     */
    @TableField(value = "account_type")
    private String accountType;
    /**
     * 账户状态（0-封禁，1-正常）
     */
    @TableField(value = "account_status")
    private String accountStatus;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 延迟退款天数
     */
    @TableField(value = "delay_day")
    private Integer delayDay;

    /**
     * 返回跳转链接
     */
    @TableField(value = "return_url")
    private String returnUrl;
    /**
     * 刷单返回跳转链接
     */
    @TableField(value = "brush_return_url")
    private String brushReturnUrl;

    /**
     * 个人签约产品码
     */
    @TableField(value = "personal_product_code")
    private String personalProductCode;

    /**
     * 所属渠道编号
     */
    @TableField(value = "belong_channel_code")
    private String belongChannelCode;
    /**
     *
     */
    @TableField(value = "vip_type")
    private String vipType;

    /**
     * 是否是查询投诉账号
     */
    @TableField(value = "is_complaint")
    private String isComplaint;

    @TableField(value = "use_channel_code")
    private String useChannelCode;

    /**
     * 主账号id
     */
    @TableField(value = "main_account_id")
    private String mainAccountId;

    @TableField(value = "product_type")
    private String productType;
}

